reconstruct_path

Turns the output from a search algorithm into a set path

deprecated
T[]
reconstruct_path
(
T
)
(,,)

Parameters

came_from T[]

The positions between start and end

start T

Starting position to go to

goal T

The end position

Return Value

Type: T[]

A path from a position to another

See Also

dijkstra_search, a_star_search, breadth_first_search

Meta